const db = require('../dal/mongo')
const fs = require('fs')
const createToken = require('../utils/createToken')


class uploadController{
    static async upImg (ctx, next){
        console.log(ctx.req.file)
        ctx.body = {
            filename: ctx.req.file.path//返回文件路径
        }
    }

}
module.exports = uploadController
